import request from '@/utils/request'

// 机构端banner
export function getBannerList(query) {
  return request({
    url: '/jbl-marketing/api/merchant/v1/ad/selectByConditions',
    method: 'get',
    params: query
  })
}

// 销售订单相关统计
export function getOrderReport(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/report/getOrderReport',
    method: 'get',
    params: query
  })
}

// 课程销售相关统计
export function courseReport(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/report/courseReport',
    method: 'get',
    params: query
  })
}

// 销售额相关统计
export function getOrderSellReport(query) {
  return request({
    url: '/jbl-order/api/merchant/v1/report/getOrderSellReport',
    method: 'get',
    params: query
  })
}

// 课程浏览相关统计
export function getViewReport(query) {
  return request({
    url: '/jbl-course/api/merchant/v1/course/view/getViewReport',
    method: 'get',
    params: query
  })
}

// 课程收藏相关统计
export function getCollectionReport(query) {
  return request({
    url: '/jbl-course/api/merchant/v1/course/collection/getCollectionReport',
    method: 'get',
    params: query
  })
}

// 课程分享相关统计
export function getShareReport(query) {
  return request({
    url: '/jbl-course/api/merchant/v1/course/share/getShareReport',
    method: 'get',
    params: query
  })
}
